package com.wanghengzhi.design.patterns.creational.singleton;

/**
 * 单例使用
 * @author wanghengzhi
 * @since 2020.11.24
 */
public class SingletonDemo {
    public static void main(String[] args) {
        SingletonObject instance = SingletonObject.getInstance();
        instance.doSomething();
        SingletonSix.INSTANCE.doSomething();
    }
}

